package com.ten.shou.controller;

import com.ten.common.core.vo.Result;
import com.ten.shou.service.BottomService;
import com.ten.shou.vo.ArticleVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ：杨（1964958771@qq.com）
 * @date ：Created in 2022/12/21 21:07
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/home/article")
public class ArticleController {
    @Resource
    private BottomService bottomService;
    @PostMapping("getArticleByNavId")
    public Result getArticleByNavId(@RequestBody ArticleVo articleVo){
        return bottomService.getArticleByNavId(articleVo);
    }
    @PostMapping("updateArticleByNavId")
    public Result updateArticleByNavId(@RequestBody ArticleVo articleVo){
        return bottomService.updateArticleByNavId(articleVo);
    }
}
